package com.aegean.MonitorExamSYS.center.action;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.aegean.MonitorExamSYS.center.business.CenterBusiness;
import com.opensymphony.xwork2.ActionSupport;
@Controller("DeleteBigTypeAction")
@Scope("prototype")
public class DeleteBigType extends ActionSupport {
	@Resource
	CenterBusiness business;
	private String[] big_Name;
	private boolean success;

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}
	
	public String[] getBig_Name() {
		return big_Name;
	}

	public void setBig_Name(String[] big_Name) {
		this.big_Name = big_Name;
	}

	public String delete() throws java.sql.BatchUpdateException {
		try {
			success = business.deleteBigType(big_Name);
			return SUCCESS;
		} catch (Exception e) {
			e.printStackTrace();
			return SUCCESS;
		}
	}
}
